package com.xfn.Mapper;

import com.github.pagehelper.Page;
import com.xfn.bean.CarInfoDataBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface CarDataMapper {
    Page<CarInfoDataBean> carData(@Param("type") String type,@Param("logmin") String logmin,
                                  @Param("logmax") String logmax,@Param("retrieval") String retrieval);

    int addCarData(@Param("carName") String carName, @Param("carType") String carType,
                   @Param("carNum") String carNum, @Param("userName") String userName,
                   @Param("fileName") String fileName);

    int delData(@Param("list") List<Map<String,String>> list);

    int updateCar(@Param("num") int num,@Param("id") int id);

    int updateCarLease(@Param("num") int num,@Param("id") int id);
    Page<CarInfoDataBean> leaseCar();
    int returnCar(@Param("id") String id,@Param("num") int num);
    Page<CarInfoDataBean> paymentCar();
    int payMoney(@Param("id") String id,@Param("leaseNum") int leaseNum);
    int updatePwd(@Param("pwd") String pwd ,@Param("userName") String userName);
}
